<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var lessonList = [
            {day: '周一', lesson: ['语文', '数学', '放学', '英语', '自习']},
            {day: '周二', lesson: ['代码', '数学', '放学', '英语', '自习']},
            {day: '周三', lesson: ['语文', '数学', '放学', '数学', '自习']},
            {day: '周四', lesson: ['语文', '语文', '放学', '语文', '自习']},
            {day: '周五', lesson: ['数学', '体育', '放学', '体育', '体育']}
        ]
        for (var week in lessonList) {
            document.write(lessonList[week].day);
            var index = 0;
            do {
                document.write(lessonList[week].lesson[index])
                index ++
            }while(index < lessonList[0].lesson.length)
            document.write('<br><br>')
        }
    </script>
</body>

</html>